home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Source.bin / SocialInsuranceNumber.java < prev    next >
Text File  |  1998-08-21  |  1KB  |  46 lines

  1. package symantec.itools.awt.util.edit;
  2.  
  3.  
  4. /**
  5.  *
  6.  * Creates a formatted text field for a social insurance number.
  7.  * SocialInsuranceNumber limits the type of text that can be entered in the text
  8.  * box to a social insurance number (nine-digit number).
  9.  * Text formatting logic is applied to the user input.
  10.  * If the text field already contains text, the user can select the default text
  11.  * and delete or edit it.
  12.  *
  13.  *
  14.  * @see symantec.itools.awt.FormattedTextField
  15.  *
  16.  * @version 1.0, Nov 26, 1996
  17.  *
  18.  * @author    Symantec
  19.  *
  20.  */
  21.  
  22.  
  23. public class SocialInsuranceNumber
  24.     extends SocialIDNumber
  25. {
  26.      /**
  27.      * Create social insurance number text field.
  28.      * This is a formatted text field
  29.      * with the following format: 999/-999/-999
  30.      */
  31.     public SocialInsuranceNumber()
  32.     {
  33.         super(11);
  34.  
  35.         super.setMask("999/-999/-999");
  36.     }
  37.  
  38.     /**
  39.      * Takes no action.  Overrides setMask in FormattedTextField to prevent
  40.      * alteration of the social insurance number mask.
  41.      */
  42.     public void setMask(String s)
  43.     {
  44.     }
  45. }
  46.